Repository navigation
MLX v0.32.4 with JACCL (separate from the 0.32.3 pin) - #9
ronaldmannak wants to merge 5 commits into
Conversation
- mlx submodule v0.32.3 (plus Pico's floor_divide fix) → v0.32.4, back on ml-explore/mlx. v0.32.4 replaces that floor_divide code with a FloorDivide primitive (ml-explore/mlx#4642), and it fixes the Metal fence deadlock (#4689), more missing streams (#4663, #4687), cached failed distributed initializations (#4558) and the cooperative-tensor build on macOS 27 (#4594). - mlx-c stays at PicoMLX/mlx-c d7fbf0a. It compiles against v0.32.4 unchanged. - Regenerated mlx-generated and include-framework with tools/update-mlx.sh. - tools/fix-metal-includes.sh gains v0.32.4's two new always-built kernels, gated_delta_update_vjp and scaled_dot_product_attention_vjp. - The Xcode project's exception lists follow MLX's added, renamed and removed files: the new Metal kernels and headers, floor_divide.cu, the examples/extensions → cmake_extension rename, examples/metal_extension, the new Python test files, and CLAUDE.md gone. - CMake fetches ml-explore/mlx v0.32.4. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # CMakeLists.txt # Source/Cmlx/mlx
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
The merge brought over the 0.32.3 branch's MLX_VERSION, and VersionTests
caught it: ("0.32.3") is not equal to ("0.32.4"). Package.swift and
Cmlx.xcconfig now say 0.32.4. That's what the version-sync lines in
tools/update-mlx.sh read from this branch's mlx/version.h.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
MLX version fix (
Evidence (local, at
|
The ring backend opens its outgoing connections without naming a source address, so macOS picks the interface from its routing table. With two Macs on a Thunderbolt Bridge, the general route for self-assigned 169.254 addresses can belong to Wi-Fi, and the connection to the other Mac then leaves over Wi-Fi and never arrives. The mlx submodule now points at PicoMLX/mlx pico/0.32.4: v0.32.4 plus MLX_RING_SOURCE_IPS, a comma-separated list of IPs that the ring binds its outgoing connections to, one for each address of the next rank, with ports the OS picks. When it isn't set, the ring behaves as before. A list that doesn't match the connections, or an empty one, fails before anything connects. CMake fetches the same commit. DistributedTests.testRingSourceIPsMustMatchTheConnections sets a list that is too long, then an empty one, as rank 1, which connects first. Without the check, both fail only once rank 1's connection attempts run out, with "Couldn't connect" instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Stacked on #8
MLX v0.32.4 on its own branch, so
pico/0.32.3-jaccl(#8) stays the known-good build that PicoCore and Pico Server pin. Nothing consumes this branch yet. Move to it once it has run the same PicoCore and two-Mac checks.What changed
mlxsubmodule: PicoMLX/mlxpico/0.32.3→ ml-explore/mlx v0.32.4 (36969c0), and.gitmodulespoints mlx back at ml-explore. v0.32.4 already has everything the fork branch carried: theFloorDivideprimitive (ml-explore/mlx#4642) and the stream fixes #4663 and #4687. It also brings:ml-explore/mlx#4689)d7fbf0a. It compiles against v0.32.4 unchanged.mlx-generatedandinclude-frameworkwithtools/update-mlx.sh.tools/fix-metal-includes.shgains v0.32.4's two new always-built kernels,gated_delta_update_vjpandscaled_dot_product_attention_vjp.floor_divide.cu,examples/extensions→examples/cmake_extension,examples/metal_extension, new Python test files, andCLAUDE.mdgone. I generated the lists in Xcode's own order and quoting, so the diff only shows real changes.MLX_VERSIONis0.32.4inPackage.swiftandCmlx.xcconfig(a4dbf45). Before this, the branch reported "0.32.0". MLX v0.32.3 with JACCL for the Pico stack #8'sVersionTestschecks it againstmlx/version.h.Evidence
At
a4dbf45: 389 SwiftPM tests pass, includingVersionTests, and 389 Xcode-project tests pass. The iOS build succeeds. Before a4dbf45,VersionTestsfailed with("0.32.3") is not equal to ("0.32.4"). The earlier results below are from34293d5.On this Mac (M5 Max, macOS 27.0.1, Xcode 27.0), at
34293d5:xcodebuild test -scheme mlx-swift-Package -destination 'platform=macOS' -only-testing:MLXTests -skipPackagePluginValidation -skipMacroValidation→Executed 388 tests, with 2 tests skipped and 0 failures,** TEST SUCCEEDED **. That includesDistributedTests,GatherMMTests,FP8Testsand MLX v0.32.3 with JACCL for the Pico stack #8'sStreamTests.xcodebuild build -scheme mlx-swift-Package -destination 'generic/platform=iOS'→** BUILD SUCCEEDED **.xcodebuild test -project xcode/MLX.xcodeproj -scheme MLX -destination 'platform=macOS'→ 389 test cases passed,** TEST SUCCEEDED **.tools/update-mlx.sh(CMake configure of v0.32.4 in JIT mode) → exit 0.Test changes
None on this branch. #8's
StreamTests(floor_divide, int32 gather indices, CPU layer_norm) pass against v0.32.4's own fixes.Not done on purpose
pico/0.32.3-jaccl.unique, the VJPs) aren't wrapped in Swift.🤖 Generated with Claude Code